class OrderList3Entity {
  OrderList3Data data;
  int code;
  String msg;

  OrderList3Entity({this.data, this.code, this.msg});

  OrderList3Entity.fromJson(Map<String, dynamic> json) {
    data =
        json['data'] != null ? new OrderList3Data.fromJson(json['data']) : null;
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data']['list'] = this.data.toJson();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class OrderList3Data {
  List<OrderList3DataData> datas;

  OrderList3Data();

  OrderList3Data.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      datas = new List<OrderList3DataData>();
      (json['list'] as List).forEach((v) {
        datas.add(new OrderList3DataData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.datas != null) {
      data['list'] = this.datas.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class OrderList3DataData {
  String contact_number;
  String status;
  String id;
  String address;
  String start_time;
  String user_id;
  String consignee;
  String create_time;
  String allprice;
  String order_num;
  bool isSelect = false;
  String order_detail_id;
  String goods_id;
  String img;
  String goods_name;
  String num;
  String sku_str;
  String price;
  String nickname;
  String avatar;
  String title;
  String money;
  String logistics;
  String express_number;
  String group_name;
  String status_zh;
  String reffeer_name;
  List<OrderList3DetailData> list;
  List<OrderList3DetailData> datas;
  OrderList3DataData(
      {this.contact_number,
      this.allprice,
      this.order_num,
      this.status,
      this.id,
      this.start_time,
      this.create_time,
      this.consignee,
      this.address});

  OrderList3DataData.fromJson(Map<String, dynamic> json) {
    address = json['address'];
    create_time = json['create_time'];
    order_num = json['order_num'];
    consignee = json['consignee'];
    id = json['id'].toString();
    allprice = json['allprice'].toString();
    status = json['status'].toString();
    contact_number = json['contact_number'].toString();
    express_number=json['express_number'].toString();
    logistics=json['logistics'].toString();
     goods_name = json['title'].toString();
    status_zh = json['status_zh'].toString();
    money = json['money'].toString();
    title = json['title'].toString();
    reffeer_name=json['referrer_name'].toString();
    user_id=json['user_id'].toString();
    avatar = json['avatar'].toString().replaceAll("\\", "/");
    allprice = json['allprice'].toString();
    nickname = json['nickname'].toString();

    sku_str = json['sku_str'].toString();
    order_num = json['order_num'].toString();
    num = json['num'].toString();
    img = json['img'].toString();
    price = json['price'].toString();
    create_time=json['create_time'].toString();
    group_name=json['group_name'].toString();
    goods_id = json['goods_id'].toString();
    order_detail_id = json['order_detail_id'].toString();
    order_num = json['order_num'].toString();
    start_time = json['start_time'];
    if (json['detail'] != null) {
      datas = new List<OrderList3DetailData>();
      (json['detail'] as List).forEach((v) {
        datas.add(new OrderList3DetailData.fromJson(v));
      });
    }
    if (json['list'] != null) {
      list = new List<OrderList3DetailData>();
      (json['list'] as List).forEach((v) {

        list.add(new OrderList3DetailData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['contact_number'] = this.contact_number;
    data['start_time'] = this.start_time;
    data['consignee'] = this.consignee;
    data['id'] = this.id;
    data['allprice'] = this.allprice;
    data['create_time'] = this.create_time;
    data['address'] = this.address;
    data['status'] = this.status;
    return data;
  }
}

class OrderList3DetailData {
  String order_detail_id;
  String goods_id;
  String img;
  String goods_name;
  String start_time;
  String num;
  String sku_str;
  String price;
  String order_num;
  String nickname;
  String allprice;
  String avatar;
  String create_time;
  String title;
  String status;
  String money;
  String group_name;
  String status_zh;
  OrderList3DetailData(
      {this.order_detail_id,
      this.price,
      this.order_num,
      this.goods_id,
      this.img,
      this.start_time,
      this.sku_str,
      this.num,
      this.goods_name});

  OrderList3DetailData.fromJson(Map<String, dynamic> json) {
    goods_name = json['goods_name'].toString();
    status_zh = json['status_zh'].toString();
    money = json['money'].toString();
    title = json['title'].toString();
    avatar = json['avatar'].toString().replaceAll("\\", "/");
    allprice = json['allprice'];
    nickname = json['nickname'].toString();

    sku_str = json['sku_str'].toString();
    order_num = json['order_num'].toString();
    num = json['num'].toString();
    img = json['img'].toString();
    price = json['price'].toString();
    create_time=json['create_time'].toString();
    group_name=json['group_name'].toString();
    goods_id = json['goods_id'].toString();
    order_detail_id = json['order_detail_id'].toString();
    order_num = json['order_num'].toString();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['order_detail_id'] = this.order_detail_id;
    data['order_num'] = this.order_num;
    data['num'] = this.num;
    data['img'] = this.img;
    data['price'] = this.price;
    data['sku_str'] = this.sku_str;
    data['goods_name'] = this.goods_name;
    data['goods_id'] = this.goods_id;
    return data;
  }
}

class OrderList3DataDatasTag {
  String name;
  String url;

  OrderList3DataDatasTag({this.name, this.url});

  OrderList3DataDatasTag.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    url = json['url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['url'] = this.url;
    return data;
  }
}
